<template>
  <a-card class="card" :bordered="false">
    <template #cover v-if="props.isCustomTitle">
      <slot name="title"></slot>
    </template>
    <slot></slot>
  </a-card>
</template>

<script setup lang="ts">
const props = defineProps({
  isCustomTitle: { type: Boolean, default: false }
})
</script>

<style lang="less" scoped>
.card {
  height: 100%;
  margin: 30px 24px;
}
</style>
